/*
Author: Surpass-HC
Source: https://gitee.com/hxchuan000/clpc-1
Mail: surpass-hc@qq.com
*/
#if 0
#ifndef __LIGHT_COMMAND_HEARTBEAT_H__
#define __LIGHT_COMMAND_HEARTBEAT_H__
#include <clptcCmdList.h>
#if DEVICE_PLATFORM_CONFIGURE != DEVICE_PLATFORM_C51_MCU
#pragma pack(1)
#endif

// =============command hdemo begin=====================
struct clptcHrtSnd_hdemo
{
    struct clptcCmdHeartCommStc comm;
    uint16_t v16;
    uint32_t v32;
    char vbuf[16];
};
struct clptcHrtResp_hdemo
{
    struct clptcCmdHeartCommStc comm;
    float v32;
    char vbuf[16];
};
union clptcHrtUnion_hdemo
{
    struct clptcHrtSnd_hdemo idt;
    struct clptcHrtResp_hdemo odt;
};
void clptcHrtFunOvtSnd_hdemo(struct clptcHrtSnd_hdemo *idt);
void clptcHrtFunOvtResp_hdemo(struct clptcHrtResp_hdemo *odt);
#if CLPTC_CPL_SUB_ENABLE
void clptcHrtFunSubDo_hdemo(clptcParseStc *ptcptr, union clptcHrtUnion_hdemo *iodt);
#endif
#if CLPTC_CPL_HOST_ENABLE
int clptcHrtFunHostPack_hdemo(clptcParseStc *ptcptr, int packAddr, int packCrypt, struct clptcHrtSnd_hdemo *packDt);
int clptcHrtFunHostDo_hdemo(clptcParseStc *ptcptr, struct clptcHrtResp_hdemo *odt);
#endif
// =============command hdemo end======================

#if DEVICE_PLATFORM_CONFIGURE != DEVICE_PLATFORM_C51_MCU
#pragma pack()
#endif

enum clptcHrtEnumList
{
    clptcHrtEnum_hdemo = 0,
};

#if CLPTC_CPL_SUB_ENABLE
int clptcHrtSubDealByID(clptcParseStc *ptcptr);
#endif
#if CLPTC_CPL_HOST_ENABLE
int clptcHrtHostDealByID(clptcParseStc *ptcptr);
#endif
#endif
#endif